home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
pcpil
/
sample9.pil
< prev
next >
Wrap
Text File
|
1985-09-17
|
1KB
|
62 lines
r: sprite demo
dx:pict$(2200),x$(2218)
fx:sample9.sqz
fi:0,pict$
fx:sample9.spr
fi:0,x$
ts:m5;e0
v:pict$
r: scale x and y so one turtle move = one pixel
g:x4;y4
r:draw planet and ship first time
g:sx$;g0,0;s13;h90;g40,130;s7
r:move comet across screen
W:20
r:since sprites can only move 4 pixels at a time setting a forward step
r:size of less than four actually produces a delay
g:g0,100;s8;h90;*610(f1);s8
g:g0,60;s8;*305(f2);s8
r:this is the fastest the sprite can move using the smallest step size allowed
g:g0,80;s8;*152(f4);s8
r:curve planet down and to right
g:w90;j13;*32(f8;r1;w12)
g:j7;s7;h0
r:spaceship goes up
g:*8(s3;f4;w9;s3; s4;f4;w9;s4)
r:spaceship hovers
g:*4(s3;w9;s3; s4;w9;s4)
r:spaceship goes to right
g:r90;*20(s3;f4;w9;s3; s4;f4;w9;s4); s4
r:planet jumps to it
g:*2(j13;h270;f4;j4;h270;f12;w5;s4;s3;w5;s3;s4;w45)
r:planet chases spaceship
g:*30(j13;f4; j4;f4;w5;s4;s3;w5;s3;s4)
r: spaceship goes around planet
g:h20;*53(f20;r18;w5;s4;s3;w5;s3;s4)
r: ship hovers while planet moves off
g:*14(s4;s3;w5;s3;s4;w5;j13;f8;r1;j4)
r: spaceship lands
g:h180;f8;w5;s4;s3;w5;s3;s7
r:move comet across screen again
g:g0,100;s8;h90;*610(f1);s8
g:g0,60;s8;*305(f2);s8
g:g0,80;s8;*152(f4);s8
e:
c:move=move+1
j(move<10):fly
w:20000